<?php
		/*
			DB history indicator
		*/
		define("BOOKING_CHANGE_LAPSE_FREED","BOOKING_CHANGE_LAPSE_FREED");
		
		/*
			We define them here so that centralized ang pangalan ng mga cookies, etc.
		*/
		define( 'PAYMENT_MODE', 'paymentMode' );
		define( 'TRANSACTION_ID', 'transactionID' );
		define( 'OLD_SHOWTIME_ID', 'oldShowtimeID' );
		define( 'OLD_SHOWTIME_TC_GROUP_ID', 'oldTicketClassGroupID' );
		define( 'OLD_SHOWTIME_TC_UNIQUE_ID', 'oldTicketClassUniqueID' );
		define( 'FREE_AMOUNT', 0.0 );
		/*
			Change the corresponding entries in string_codes.php in the root accordingly
			if change is done
		*/
		define( 'FACTORY_AUTOCONFIRMFREE_UNIQUEID', 0 );
		define( 'FACTORY_PAYPALPAYMENT_UNIQUEID', 2 );
		define( 'PAYPAL_FEE_FIXED', 15.00 );
		define( 'PAYPAL_FEE_PERCENTAGE', 0.034 );
		
		/*
			Activity names
		*/
		define( 'ADMIN_MANAGE_USER', 'ADMIN_MANAGE-USER');
		define( 'ADMIN_MANAGE_PAYMENTMODE', 'admmgtpm');
		define( 'BOOK', 'BOOK' );
		define( 'CONFIRM_RESERVATION', 'CONFIRM_BOOKING' );
		define( 'MANAGE_ACCOUNT', 'MANAGE_ACCOUNT' );
		define( 'MANAGE_BOOKING', 'MANAGE_BOOKING' );
		define( 'MANAGE_SEATMAP', 'MANAGE_SEATMAP' );
		define( 'CHECK_IN', 'CHECKIN_IN' );
		define( 'CHECK_OUT', 'CHECKIN_OUT' );
		define( 'SEAT_CREATE', 'SEAT_CREATE' );
		define( 'IDLE', 'IDLE' );
		/*
			Database Indicators
		*/
		define('BOOKDETAIL_STAT2_FOR_DELETION', 'FOR-DELETION' );
		/*
			Array keys
		*/
		define( 'AKEY_UNPAID_PURCHASES_ARRAY', 'unpaidPurchasesArray' );
		define( 'AKEY_PAID_PURCHASES_ARRAY', 'paidPurchasesArray' );
		define( 'AKEY_UNPAID_TOTAL', 'unpaidTotal' );
		define( 'AKEY_PAID_TOTAL', 'paidTotal' );
		define( 'AKEY_AMOUNT_DUE', 'amountDue' );
		
		/*
			Browser detection constants
		*/
		define( 'BR_ALLOWED' , 0x80 );
		define( 'BR_STRICTLY_NOT_ALLOWED', 0x81 );
		define( 'BR_UNKNOWN_BUT_PERMIT_STILL', 0x82 );
		define( 'BR_UNKNOWN_AND_DENY', 0x83 );
		define( 'BR_NOT_TESTED_BUT_PERMIT_STILL', 0x84 );
		define( 'BR_NOT_TESTED_AND_DENY', 0x85 );
		define( 'BR_BOT_SIMPLE', 0x86 );
		define( 'BR_AGENT_DENIED', 0x87 );
		
		/*
			For payment modes
		*/
		define( 'PAYMODE_PAYPAL', "paypal" );
		define( 'PAYMODE_2CO', "2checkout" );
		define( 'PAYMODE_MONYEBOOKERS', "moneybookers" );
		
		/*
			Session stages
		*/
		// new user sign up
		define( 'STAGE_NEWSIGN_1_PROCESS', 0 );
		define( 'STAGE_NEWSIGN_1_FORWARD', 1 );
		define( 'STAGE_NEWSIGN_2_PROCESS', 2 );
		define( 'STAGE_NEWSIGN_2_FORWARD', 3 );
		define( 'STAGE_NEWSIGN_3_PROCESS', 4 );
		define( 'STAGE_NEWSIGN_3_FORWARD', 5 );
		// booking process
		define( 'STAGE_BOOK_1_PROCESS', 10 );
		define( 'STAGE_BOOK_1_FORWARD', 11 );
		define( 'STAGE_BOOK_2_PROCESS', 12 );
		define( 'STAGE_BOOK_2_FORWARD', 13 );
		define( 'STAGE_BOOK_3_PROCESS', 14 );
		define( 'STAGE_BOOK_3_FORWARD', 15 );
		define( 'STAGE_BOOK_4_PROCESS', 16 );
		define( 'STAGE_BOOK_4_CLASS_1_FORWARD', 17 );	// only if student number/emp num is entered in book_4_forward
		define( 'STAGE_BOOK_4_CLASS_2_FORWARD', 18 );	// only if student number/emp num is entered in book_4_forward
		define( 'STAGE_BOOK_4_FORWARD', 19 );
		define( 'STAGE_BOOK_5_PROCESS', 20 );
		define( 'STAGE_BOOK_5_FORWARD', 21 );
		define( 'STAGE_BOOK_6_PROCESS', 22 );
		define( 'STAGE_BOOK_6_PAYMENTPROCESSING', 23 );
		define( 'STAGE_BOOK_6_FORWARD', 24 );
		// booking confirmation by payment agents
		define( 'STAGE_CONFIRM_1_FORWARD', 101 );
		define( 'STAGE_CONFIRM_2_PROCESS', 102 );
		define( 'STAGE_CONFIRM_2_FORWARD', 103 );
		define( 'STAGE_CONFIRM_3_PROCESS', 104 );
		define( 'STAGE_CONFIRM_3_FORWARD', 105 );
		// manage booking
		define( 'STAGE_MB0_HOME', 200 );
		define( 'STAGE_MB0_PREP_PR', 201 );
		define( 'STAGE_MB0_PREP_FW', 202 );
		define( 'STAGE_MB1_SELECT_SHOWTIME_PR', 203 );
		define( 'STAGE_MB1_SELECT_SHOWTIME_FW', 204 );
		define( 'STAGE_MB2_SELECT_TICKETCLASS_1_PR', 205 );
		define( 'STAGE_MB2_SELECT_TICKETCLASS_2_PR', 206 );
		define( 'STAGE_MB2_SELECT_TICKETCLASS_FW', 207 );
		define( 'STAGE_MB2_SELECT_TICKETCLASS_3_PR', 208 );
		//!!! define( 'STAGE_MB3_SELECT_SEAT_FORCED', 209 );
		//!!! define( 'STAGE_MB3_SELECT_SEAT_OPT', 210);
		//!!! define( 'STAGE_MB3_SELECT_SEAT_SOMEGUEST', 211 );
		define( 'STAGE_MB3_SELECT_SEAT_1_PR', 211 ); 
		define( 'STAGE_MB3_SELECT_SEAT_2_PR', 212 ); 
		define( 'STAGE_MB3_SELECT_SEAT_3_PR_SOMEUNAVAIL', 213 ); 
		define( 'STAGE_MB3_SELECT_SEAT_3_PR_CHANGEOPT', 214 ); 
		define( 'STAGE_MB3_SELECT_SEAT_FW', 215 );
		define( 'STAGE_MB3_SELECT_SEAT_PR', 216 );
		define( 'STAGE_MB4_CONFIRM_PR', 217 );
		define( 'STAGE_MB4_CONFIRM_FW', 218 );
		define( 'STAGE_MB5_SELECT_PAYMENT_PR', 219 ); 
		define( 'STAGE_MB5_SELECT_PAYMENT_FW', 225 );
		define( 'STAGE_MB7_PAYMENT_PR', 226 );
		define( 'STAGE_MB7_PAYMENT_ONLINE_PR', 227 );
		define( 'STAGE_MB8_PENDINGCHANGEVD_PR', 228 );
		define( 'STAGE_MB8_PENDINGCHANGEVD_FW', 229 );
		define( 'STAGE_MB9_FINAL_PR', 230 );
		define( 'STAGE_MB9_FINAL_FW', 231 );
		
		define( 'STAGE_MBX_CANCEL_PR', 250 );
		define( 'STAGE_MBX_CANCEL_FW', 251 );
		
		define( 'STAGE_MS0_HOME', 400 );
		// manage user
		define( 'STAGE_MU_1_PR', 900 );
		define( 'STAGE_MU_1_FW', 901 );
		define( 'STAGE_MU_2_PR', 902 );
		define( 'STAGE_MU_2_FW', 903 );
		// manage account
		define( 'STAGE_MACCT0_HOME', 1000 );
		define( 'STAGE_MACCT1_PR', 1001 );
		define( 'STAGE_MACCT1_FW', 1002 );
		// manage payment mode
		define( 'STAGE_MPAY_1_PR', 1200 );
		define( 'STAGE_MPAY_1_FW', 1201 );
		define( 'STAGE_MPAY_ADD_1_PR', 1250 );
		define( 'STAGE_MPAY_ADD_1_FW', 1251 );
		define( 'STAGE_MPAY_ADD_2_PR', 1252 );
		define( 'STAGE_MPAY_ADD_2_FW', 1253 );
		define( 'STAGE_MPAY_EDIT_1_PR', 1300 );
		define( 'STAGE_MPAY_EDIT_1_FW', 1301 );
		define( 'STAGE_MPAY_EDIT_2_PR', 1302 );
		define( 'STAGE_MPAY_EDIT_2_FW', 1303 );
		define( 'STAGE_MPAY_DEL_1_PR', 1350 );
		define( 'STAGE_MPAY_DEL_1_FW', 1351 );
		define( 'STAGE_MPAY_DEL_2_PR', 1352 );
		define( 'STAGE_MPAY_DEL_2_FW', 1353 );
		// create seat map
		define( 'STAGE_CR_SEAT1', 5250 );
		define( 'STAGE_CR_SEAT2_PR', 5251 );
		define( 'STAGE_CR_SEAT2_FW', 5252 );
		define( 'STAGE_CR_SEAT3_PR', 5253 );
		define( 'STAGE_CR_SEAT3_FW', 5254 );
		/*
			In Manage Booking, these are used to signify
			stages passed.
		*/
		define( 'MB_STAGEPASS1_SHOWTIME', 'showingtime' );
		define( 'MB_STAGEPASS2_TICKETCLASS', 'ticketclass' );
		define( 'MB_STAGEPASS3_SEAT', 'seat' );
		define( 'MB_STAGEPASS4_NEWCOST', 'newcost' );
		/*
			In Manage Booking, these are used to signify whether
			a stage is passable or not.
		*/
		define( 'MB_STAGESTAT_NOTMEANT',  0 );
		define( 'MB_STAGESTAT_CANPASS',  1 );
		define( 'MB_STAGESTAT_SHOULDPASS',  2 );
		define( 'MB_STAGESTAT_PASSED',  3 );
		define( 'MB_STAGESTAT_CHANGED',  4 );
		/* 
			Post indicators
		*/
		define( 'PIND_SLOT_SAME_TC_NO_MORE_USER_NOTIFIED', 'noMoreSlotSameTicketClassNotified' );
		define( 'PIND_SEAT_SAME_TC_NO_MORE_USER_NOTIFIED', 'noMoreSeatSameTicketClassNotified' );
		define( 'PIND_CHANGE_SEAT_NOTIFIED', 'option_change_seat_notified' );
		define( 'PIND_MBCANCELCHANGE_PROMPT', 'mb_cancelchanges_prompted' );
	
		/*
			Unclassified
		*/
		define( 'DO_NOT_SHOW_SEATINFO_INDICATOR', '_DO-NOT-SHOW' );
		define( 'AUTH_THEN_REDIRECT' , 'redirect_to' );
		define( 'SEAT_COORD404', '-1' );
		define( 'UP_STUDENTNUM_MINREQUIREMENT_LEN', 8);
		define( 'UP_EMPNUM_MINREQUIREMENT_LEN', 8);
		define( 'INTERNAL_LAST_ERR', 'INTERNAL_LAST_ERR' );
		/*
			Internal error indicators, mostly used
			by library inputcheck.php
		*/
		define( 'INTERNAL_ERR_USERNAME_FORM_FAIL', 8000 );
		define( 'INTERNAL_ERR_PASSWORD_FORM_FAIL', 8001 );
		define( 'INTERNAL_ERR_NAME_ALL_FORM_FAIL', 8002 );
		define( 'INTERNAL_ERR_PHONE_ALL_FORM_FAIL', 8003 );
		define( 'INTERNAL_ERR_EMAIL_ALL_FORM_FAIL', 8004 );
		define( 'INTERNAL_ERR_STUDENTNUM_FORM_FAIL', 8010 );
		define( 'INTERNAL_ERR_EMPNUM_FORM_FAIL', 8011 );
		define( 'INTERNAL_ERR_SEATNAME_FORM_FAIL', 8030 );
		
?>